package com.hw.webflux.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;


/**
 * @program: spring-webflux
 * @description:
 * @author: hewei
 * @date: 2021-10-21 17:42
 **/
@Data
/*mybatis-plus 注解*/
//@TableName(schema = "main",value = "t_user")
/* 支持r2dbc的注解 */
@Table(value = "t_user")
public class User {

    /*mybatis-plus注解*/
//    @TableId(value = "id",type = IdType.AUTO)
    /* 支持r2dbc的注解 */
    @Id
    private Long id;
    private String name;
    private String addr;
}
